package com.efast.dmom.aps.datahandlers;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.efast.dmom.aps.dao.WorkingCalendarShiftDao;

@Component
public class WorkingCalendarShiftDataHandler {
	@Autowired
	private WorkingCalendarShiftDao workingCalendarShiftDao;
	public int getCountByShiftId(long shiftId) {
		return workingCalendarShiftDao.getCountByShiftId(shiftId);
	}
	
	public void deleteCalendaeShiftRelByShiftIdCalendarId(Map<String,Object> map) {
		 workingCalendarShiftDao.deleteCalendaeShiftRelByShiftIdCalendarId(map);
	}
	
	public List<Long> selectShiftIdByCalendarId(long calendarId) {
		List<Long> selectShiftIdByCalendarId = workingCalendarShiftDao.selectShiftIdByCalendarId(calendarId);
		return selectShiftIdByCalendarId;
	}

	public List<Integer> selectShiftSequenceByCalendarId(long calendarId) {
		return workingCalendarShiftDao.selectShiftSequenceByCalendarId(calendarId);
	}
}
